package com.example.speeddating.mapper;

import com.example.speeddating.entity.Visitor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 *
 * @author tina
 * @since 2023-07-14 10:33:47
 */
@Mapper
public interface VisitorMapper extends BaseMapper<Visitor> {

    @Update(value = "update visitor set is_read = 1 where visitor_id = #{userId} and is_read = 0")
    public int batchUpdateVistors(Long userId);

}
